package com.zzyl.nursing.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.zzyl.nursing.domain.Elder;
import com.zzyl.nursing.domain.NursingTask;
import com.zzyl.nursing.dto.NursingTaskChangeDto;
import com.zzyl.nursing.dto.NursingTaskExecutionDto;
import com.zzyl.nursing.vo.NursingTaskVo;

import java.util.List;

/**
 * 护理任务Service接口
 *
 * @author ruoyi
 * @date 2024-09-27
 */
public interface INursingTaskService extends IService<NursingTask>
{
    /**
     * 生成护理任务
     * @param elder
     */
    void createMonthTask(Elder elder);

    List<NursingTask> selectNursingTaskList(NursingTask nursingTask);

    NursingTaskVo selectNursingTaskById(Long id);

    boolean cancelTask(Long taskId, String reason);

    NursingTask selectNursingTaskByIds(Long id);

    void execute(NursingTaskExecutionDto dto);

    void change(NursingTaskChangeDto dto);
}
